import instance from '../utils/request'
// 抽取方法-编辑用户信息
const editUserInfo = data => {
  return instance({
    url: '/v1_0/user/profile',
    method: 'patch',
    data
  })
}
// 抽取api 上传头像
// 传递过来的data应该是一个对象
const uploadPhoto = data => {
  return instance({
    url: '/v1_0/user/photo',
    method: 'patch',
    data
  })
}
export { editUserInfo, uploadPhoto }
